package com.mybatisplus.mp.service.impl;

import com.mybatisplus.mp.mapper.UserMapper;
import com.mybatisplus.mp.myanno.Retry;
import com.mybatisplus.mp.pojo.User;
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AopTestDemoServiceImpl {
    @Autowired
    UserMapper userMapper;
@Retry
    public void test() {
        System.out.println("1");
    throw new RuntimeException();

    }

    public void test2() {
        User build = User.builder().id(1L).build();
        try {
            userMapper.insertInto(build);
        } catch (Exception e) {
            System.out.println("异常");
        }
    }
}
